import React, { useEffect } from 'react';
import { useHistory } from 'react-router-dom';
import { Button } from 'antd';
const CanvasPage = () => {
    const history = useHistory()
    const handleClick = () => {
        history.push('/')
    }
    return (
        <div className="main-page">
            <div>
                <Button onClick={handleClick}>canvas</Button>
            </div>
            <canvas id="testCanvas" width="300" height="300"></canvas>
        </div>
    )
}
export default CanvasPage